package com.zis.base;

import com.zis.core.SearchParams;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;
import java.util.Map;

/**
 * Create by wangshen 2017/12/19
 */
public interface BaseInter<T> {

    String insert(T t) throws Exception;

    String update(T t) throws Exception;

    String delete(String id) throws Exception;

    T selectById(String id) throws Exception;

    PageQuery<T> findByPage(SearchParams params) throws Exception;

    List<T> findByCondition(T t) throws Exception;
}
